package org.example.erpapiservicespringmongoimpl.mapper;

import org.example.erpapicommon.model.Product;
import org.example.erpapicommon.model.TProduct;
import org.example.erpapiservicespringmongoimpl.doc.ProductDoc;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Named;

import java.util.List;

@Mapper(componentModel = "spring",uses = {CategoryMapper.class, SupplierMapper.class})
public interface ProductMapper {
    @Mapping(target = "category", ignore = true)
    Product fromDoc(ProductDoc product);



}
